<?php
$testJSON=array('name'=>'中文字符串','value'=>'test');

$res=json_encode($testJSON);

//foreach ( $testJSON as $key => $value ) {
//    $testJSON[$key] = urlencode ( $value );
//
//}
echo urldecode ( $res );
